﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T.FAS.Runtime.MF.Entity.ElsaEntity
{
    public class WorkflowInstance
    {
        public string Id { get; set; } = default!;
        public string DefinitionId { get; set; } = default!;
        public string DefinitionVersionId { get; set; } = default!;
        public int Version { get; set; }
        public string Status { get; set; } = default!;
        public string SubStatus { get; set; } = default!;
        public string? CorrelationId { get; set; }
        public string? Name { get; set; }
        public int IncidentCount { get; set; }
        public DateTime CreatedAt { get; set; }
        public DateTime UpdatedAt { get; set; }
        public DateTime? FinishedAt { get; set; }
        public string? Data { get; set; }
        public string? DataCompressionAlgorithm { get; set; }
        public bool IsSystem { get; set; } = false;
        public string? ParentWorkflowInstanceId { get; set; }
        public string? TenantId { get; set; }
        public bool IsExecuting { get; set; } = false;
    }
}
